<?php
error_reporting(0);
require_once ('config.php');
?>
<!DOCTYPE HTML>
<html>
<head>
<title>
个人中心
</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<script type="text/javascript">
try{WeixinJSBridge.call('hideToolbar');}
catch(err){
document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {WeixinJSBridge.call('hideToolbar');});}
</script>

<link rel="stylesheet" href="global.css" type="text/css" />

<link rel="stylesheet" type="text/css" media="screen and (min-width:800px)" href="desktop.css" type="text/css">

<script type="text/javascript">
var True = true
var False = false
var None = null
window.dataObj = {}
window.privLevel = parseInt(901);
</script>


<link rel="stylesheet" href="cart.css" type="text/css" />
<!-- <link rel="stylesheet" media="all and (max-device-width:480px)" href="http://st0.wexinfruit.com/hust/www/css/cart-low.css" type="text/css" /> -->

</head>
<style type="text/css" media="all">
body{
user-select:none;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: moz-none;
-ms-user-select: none;
}


</style>

<body>
<?php
$sql="select * from d_user where d_user_name='".$_SESSION['d_user']."'";
$rs=mysql_fetch_array(mysql_query($sql));
?>
</br>

<section class="container main-container" >
<div id="option-box-wrapper" >
<div id="option-box" style="border-radius:8px">
<div class="circle-icon" >
<img src="./img/home-icon.png"/>
</div>
<h3 align="center" class="name" style="color:#fe6565"><?php echo htmlspecialchars($rs['d_user_nick']); ?></h3>
<p align="center" id="remaining-money-box">我的编号：<input name="name" style="text-align:center;" type="text" id="name" size="10" readonly="readonly" value="<?php echo $rs['d_user_id'];?>"></p>
<p align="center" id="remaining-money-box">账户余额：<input name="name" style="text-align:center;color:#fe6565" type="text" id="name" size="10" readonly="readonly" value="<?php echo '￥'.$rs['d_user_money'];?>"></p>

<?php
	$sql1="select * from d_news where d_news_goal='".$rs['d_user_id']."'";
	$result=mysql_query($sql1);
	$total=mysql_num_rows($result);
?>
<a href="my_news.php"><p align="center" id="remaining-money-box">我的消息：<input name="name" style="text-align:center;" type="text" id="name" size="10" readonly="readonly" value="<?php echo $total;?>"></p></a>
<a href="index.php">退出</a>



</div>
</div>


</div>
</div>
</section>


<footer id="footer-bar" >
<div class="head-border" ></div>
<div class="btn-wrapper" >
<div class="btn-list" >
<?php
if ($total!=0){
?>
<li id="home-btn" data-id="home" ><a href='member.php'><img src="./img/home-icon.png" class="icon"/>个人中心</a></li>
<?php
}
else{
?>
<li id="home-btn" data-id="home" ><a href='member.php'><img src="./img/home-icon.png" class="icon"/>个人中心</a></li>
<?php
}
?>


<li id="home-btn" data-id="home" ><a href='my_friends.php'><img src="./img/order-icon.png" class="icon"/>我的好友</a></li>
<li id="home-btn" data-id="home" ><a href='my_programe.php'><img src="./img/order-icon.png" class="icon"/>我的项目</a></li>
<li id="home-btn" data-id="home" ><a href='my_supervise.php'><img src="./img/order-icon.png" class="icon"/>监督项目</a></li>


</div>
</div>
</footer>


</body>
</html>
